<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        div{
          width: 304px;
          height: 317px;  
          background: red;
          border: 10px solid #333;
          overflow: hidden;
        }
        img{
            width: 304px;
            height: 317px;
            transition: transform 1s;
        }
        img:hover{
            transform: scale(1.5);
        }
    </style>
</head>
<body>
  <div>
      <img src="images/test.jpg" alt="">
  </div> 
</body>
</html>